﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserManage.aspx.cs" Inherits="DQYT.HTDZ.Web.Views.SystemManage.UserManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户管理</title>
    <link href="../../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script src="../../js/changerows.js" type="text/javascript"></script>
    <script type="text/javascript">
        function CheckAll(form) {
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.name != 'chkall' && e.type == 'checkbox')
                    e.checked = form.chkall.checked;
            }
        }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" style="height: 25px">
                    <img src="../images/module.gif" width="20" alt="" /></td>
                <td style="width: 232px; height: 25px;">
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td width="80%" align="right" style="height: 25px">
                    <img src="../images/search.gif" alt="搜索" />用户姓名：<asp:TextBox ID="txtName" runat="server"
                        CssClass="input1"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="submit" CausesValidation="False"
                        OnClick="btnSearch_Click" /></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" 
            Width="99%" CssClass="gridview" RowStyle-HorizontalAlign="center" 
            EmptyDataText="没有数据" OnRowDataBound="GvData_RowDataBound" AllowPaging="True" 
            PageSize="20" onpageindexchanging="gvData_PageIndexChanging">
            <Columns>
                <asp:BoundField DataField="USE_ID" HeaderText="自动ID"/>
                <asp:BoundField DataField="BUM_ID" HeaderText="单位ID" />
                <asp:BoundField DataField="JSE_ID" HeaderText="角色ID" />
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <asp:Label ID="lblXH" runat="server"></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Width="40px" />
                </asp:TemplateField>
                <asp:BoundField DataField="USE_CODE" HeaderText="用户代码">
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="USE_NAME" HeaderText="用户姓名">
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="USE_BH" HeaderText="用户编号" >
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="USE_EMAIL" HeaderText="邮件" >
                    <HeaderStyle Width="120px" />
                </asp:BoundField>
                <asp:BoundField DataField="USE_PHONE" HeaderText="电话" >
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="BUM_MC" HeaderText="所属部门">
                    <HeaderStyle Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="JSE_NAME" HeaderText="用户角色">
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="USE_IPADRESS" HeaderText="IP地址">
                    <HeaderStyle Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="USE_MACDRESS" HeaderText="物理地址">
                    <HeaderStyle Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="USE_LASTTIME" HeaderText="最后登录时间">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>
                <asp:BoundField DataField="USE_ZT" HeaderText="状态">
                    <HeaderStyle Width="40px" />
                </asp:BoundField>
<asp:BoundField DataField="USE_BZ" HeaderText="备注"></asp:BoundField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtnEdit" CssClass="lnkbtn" runat="server" CommandArgument='<%#Eval("USE_ID") %>' OnClick="lnkbtnEdit_Click">修改</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <asp:CheckBox ID="ckFlag" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle HorizontalAlign="Center" />
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
            <PagerStyle HorizontalAlign="Center" />
        </asp:GridView>
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    &nbsp;</td>
                <td align="right">
                    <input type="checkbox" name="chkall" onclick="CheckAll(this.form)" value="on" /><font
                        color="#FF0000">全选</font>&nbsp;
                    <asp:Button ID="btnAdd" runat="server" Text="添加" CssClass="submit" CausesValidation="False" OnClick="btnAdd_Click" />&nbsp;<asp:Button ID="btnDel" runat="server" Text="删除" CssClass="submit" OnClientClick="return confirm('确定要删除吗?')" OnClick="btnDel_Click" />
                    <asp:Button ID="btnCZPWD" runat="server" Text="重置密码" CssClass="submit" 
                        OnClick="btnCZPWD_Click" />
                </td>
            </tr>
        </table>
        <p>
            <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>&nbsp;
        </p>
    </form>
</body>
</html>

<script type="text/javascript" language="javascript">
    //senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
    senfe("gvData", "#ECF9FC", "#FFFFFF", "#D6F1F8");
</script>